
public class SymboleTerminaux extends Symbole{
	
	 public String cara;
	 protected char symbole;
	 
	public SymboleTerminaux(char symbole) {
		super(symbole);
		if('A' <= symbole && symbole <= 'Z'){
			this.symbole = symbole;
			}else{
		    this.symbole = 0;
			}
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result
				+ ((cara == null) ? 0 : cara.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		SymboleTerminaux other = (SymboleTerminaux) obj;
		if (cara == null) {
			if (other.cara != null)
				return false;
		} else if (!cara.equals(other.cara))
			return false;
		return true;
	}

}
